import request from '@/utils/request'

// 查询教练薪资列表
export function listCoachsalary(query) {
  return request({
    url: '/puyu/coachsalary/list',
    method: 'get',
    params: query
  })
}

// 查询教练薪资详细
export function getCoachsalary(coachSalaryId) {
  return request({
    url: '/puyu/coachsalary/' + coachSalaryId,
    method: 'get'
  })
}

// 新增教练薪资
export function addCoachsalary(data) {
  return request({
    url: '/puyu/coachsalary',
    method: 'post',
    data: data
  })
}

// 修改教练薪资
export function updateCoachsalary(data) {
  return request({
    url: '/puyu/coachsalary',
    method: 'put',
    data: data
  })
}

// 删除教练薪资
export function delCoachsalary(coachSalaryId) {
  return request({
    url: '/puyu/coachsalary/' + coachSalaryId,
    method: 'delete'
  })
}
